package com.suyi.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@SuppressWarnings("serial")
@NoArgsConstructor
@Data
@Accessors(chain=true)
public class Dept implements Serializable {
    //主键
    private Long deptno;
    // 部门名称
    private String dname;
    // 来自哪个数据库，数据库名称
    private String db_source;

    public Dept(String dname) {
        this.dname = dname;
    }

    // 测试方法
    /*public static void main(String[] args) {
        Dept dept = new Dept();

        dept.setDeptno(11L).setDname("RD").setDb_source("DB01");
    }*/
}
